package text;
//父类
public abstract class test {
    String name;
    int age;
    double salary;

    public test(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }
    public void Work(){
        System.out.println(name+"的工资是"+salary+"，年龄是"+age+"的员工上班了");
    }
    public void quitting(){
        System.out.println(name+"的工资是"+salary+"，年龄是"+age+"的员工下班了");
    }
    //完成工作
    abstract void finish();
}
